<template>
	<!-- 您已获得购物券 -->
	<div class="getTicket">
		<div class="cancel">
			<div class="cancel_img" @click="cancel">
				<img src="https://image.soole.com.cn/cancel.png" alt="">
			</div>
		</div>
		
		<div class="ticketInfo">
			<div class="ticketInfo_text">
				<div class="text1">您已获得购物券</div>
				<div class="text2">
					<div class="ski_count">
						<div class="ski_price"><span>￥</span>200</div>
					</div>
				</div>
				<div class="text3">
					<div class="text3_img">
						<p>到账进度</p>
					</div>
					<div class="text3_progress">
						<van-progress
						color="#FFEA01" 
						:percentage="50" 
						 pivot-text=""
						stroke-width="8" />
					</div>
				</div>
				<div class="text4">
					点击右上角，分享给好友<br/>可以再领一次购物券哦
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		mounted() {
			
		},
		methods:{
			cancel(){
				this.$emit('cancel');
			},
		}
		
	}
</script>

<style lang="scss" scoped>
	.getTicket {
		width: 375px;
		.ticketInfo {
			background-image: url('https://image.soole.com.cn/¥.png');
			background-repeat: no-repeat;
			background-size: 100%;
			text-align: center;
			width: 100%;
			height: 385px;
			position: relative;

			.ticketInfo_text {
				position: absolute;
				left: 0px;
				right: 0px;
				bottom: 25px;
				margin: 0 auto;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				height: 205px;
				width: 285px;
			}

			.text1 {
				font-size: 20px;
				color: #fff;
			}

			.text2 {
				.ski_count{
					display: flex;
					justify-content: center;
				}
				.ski_price{
					font-size: 60px;
					color:#FFF000;
					font-weight: 700;
					span{
						font-size: 27px;
						font-weight: 100;
					}
				}
			}

			.text3 {
				font-size: 12px;
				color: #FF2B3D;
				width: 100%;
				padding:0px 46px 22px 46px;
				.text3_progress{
					width: 147px;
					margin: 0 auto;
				}
				.text3_img{
					display: flex;
					justify-content: flex-end;
					p{
						width: 61px;
						background-image: url('https://image.soole.com.cn/sydsje.png');
						background-repeat: no-repeat;
						background-size: 100% 100%;
						padding: 1px 1px 6px 2px;
						margin-bottom: 4px;
					}
				}
			}

			.text4 {
				color: #FFEA01;
				margin-bottom: 12px;
				font-size: 12px;
			}
		}

		.cancel {
			width: 327px;
			display: flex;
			justify-content: flex-end;
		}

		.cancel_img {
			width: 36px;
			height: 36px;

			img {
				width: 100%;
				height: 100%;
			}
		}
	}
</style>
